
# 自定义钩子文件，确保图标被正确打包
import os
from PyInstaller.utils.hooks import collect_data_files

# 确保图标文件被包含在打包中
icon_path = os.path.join(os.path.dirname(__file__), '..', 'icon.ico')
if os.path.exists(icon_path):
    datas = collect_data_files('.', include_py_files=False, includes=['icon.ico'])
